package com.hg.library.model;

/**
 * Created by admin on 2016/12/13.
 */
public class NotificationModel {

    public static final int SystemUpdate = 1;

    public static final int CopyFile = 2;

    public static final int StandardInfo = 3;

    public static final int Screenshot = 4;

    public static final int SystemUpdate_Delete = 10;

    public static final int CopyFile_Success = 12;

    public static final int CopyFile_Failed = 13;

    public static final int SystemUpdate_Pause = 14;

    private int type;

    private int id;

    private String filePath;

    private long soFar;

    private long total;

    private long restTime;

    private float percent = -1;

    private int flag;

    private String statusTxt1;

    private String statusTxt2;

    private boolean isDownloading = true;

    private String title;

    private String content;

    private long startTime = -1;

    private long nowTime = -1;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getSoFar() {
        return soFar;
    }

    public void setSoFar(long soFar) {
        this.soFar = soFar;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public long getRestTime() {
        return restTime;
    }

    public void setRestTime(long restTime) {
        this.restTime = restTime;
    }

    public float getPercent() {
        return percent;
    }

    public void setPercent(float percent) {
        this.percent = percent;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getStatusTxt1() {
        return statusTxt1;
    }

    public void setStatusTxt1(String statusTxt1) {
        this.statusTxt1 = statusTxt1;
    }

    public String getStatusTxt2() {
        return statusTxt2;
    }

    public void setStatusTxt2(String statusTxt2) {
        this.statusTxt2 = statusTxt2;
    }

    public boolean isDownloading() {
        return isDownloading;
    }

    public void setDownloading(boolean downloading) {
        isDownloading = downloading;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getNowTime() {
        return nowTime;
    }

    public void setNowTime(long nowTime) {
        this.nowTime = nowTime;
    }

    @Override
    public boolean equals(Object o) {
        NotificationModel notificationModel = (NotificationModel) o;
        return notificationModel.getFilePath() != null && notificationModel.getFilePath().equals(filePath);
    }
}
